<?php

namespace System\Types\Reflections;

/**
 * Description of ReflectionAssembly
 *
 * @author elton.schivei
 */
class ReflectionAssembly extends \System\Types\Object
{

    /**
     * @var \ReflectionClass
     */
    private $reflection;

    public function __construct(\System\Types\Object $obj)
    {
        parent::__construct();
        $this->reflection = new \ReflectionClass($obj);
    }

    public function CodeBase()
    {
        $filename = $this->reflection->getFileName();

        return \realpath($filename);
    }

    /**
     * @return \ReflectionClass
     */
    public function Reflection()
    {
        return $this->reflection;
    }

}
